package command.command.impl;

import command.command.Command;
import command.receiver.TV;

/**
 * 具体命令：电视调高音量
 *
 * @author Liu Yicong
 * @date 2025/9/25
 */
public class VolUpTVCommand implements Command {
	private TV tv;

	public VolUpTVCommand(TV tv) {
		this.tv = tv;
	}

	@Override
	public void execute() {
		if (this.tv.isOn()) {
			this.tv.volUp();
		} else {
			System.out.println("📺电视未开启!无法升高音量");
		}
	}
}
